<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/public/head::head(~{::title},~{},~{})">
    <title>公告详情-饮食分析系统</title>
</head>

<body>
<div class="weadmin-body" style="">
    <div>
        <div style="text-align: center">
            <h2 th:text="${notice.title}" style="margin-bottom: 2px"></h2>
            <label>发布人:</label><span th:text="${notice.userName}"></span>&nbsp;&nbsp;
            <label>发布时间:</label><span th:text="${#dates.format(notice.createTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
        </div>
        <hr/>
        <div  th:utext="${notice.content}">
        </div>

    </div>
</div>
</body>
<script>
    window.onload=function (ev) {
        $("img").each(function (index) {
            $(this).css("max-width","600px");
        })
    }

</script>

</html>